package com.my.study.mybatisPlus.convert;

import java.util.List;

public interface BaseConvert<Target, Entity> {
    /**
     * @param target
     * @return
     */
    Entity toEntity(Target target);

    /**
     * @param entity
     * @return
     */
    Target toTarget(Entity entity);

    /**
     * @param target
     * @return
     */
    List<Entity> toEntityList(List<Target> target);

    /**
     * @param target
     * @return
     */
    List<Target> toTargetList(List<Entity> target);
}
